import request from '@/utils/request';

/**
 * @author yykk
 * @date: 2022-04-18 01:07:10
 * @desc: 酒店品牌模块业务
 * @version：1.0.0
 */
export default {

  // 1: 查询$搜索&分页酒店品牌
  findHotelBrandPage(hotelbrandVo = {pageNo: 1, pageSize: 10}) {
    return request.post("hotelbrand/list", hotelbrandVo);
  },

  // 2: 查询酒店品牌列表
  findHotelBrandList() {
    return request.get("hotelbrand/load");
  },

  // 3: 保存&修改酒店品牌
  saveUpdateHotelBrand(hotelbrand = {}) {
    return request.post("hotelbrand/saveupdate", hotelbrand);
  },

  // 4: 根据id删除酒店品牌
  delHotelBrand(id) {
    if (!id) {
      return;
    }
    return request.post("hotelbrand/delete/" + id);
  },

  // 5: 批量删除酒店品牌
  delBatchHotelBrand(batchIds) {
    if (!batchIds) {
      return;
    }
    return request.post("hotelbrand/delBatch", {batchIds});
  },

  // 6: 根据id查询酒店品牌明细
  getHotelBrand(id) {
    if (!id) {
      return;
    }
    return request.get("hotelbrand/get/" + id);
  },


}
